projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8549a1
)
picture: Unref previous paintable
author
Timm Bäder
<mail@baedert.org>
Sat, 13 Jul 2019 07:38:28 +0000
(09:38 +0200)
committer
Timm Bäder
<mail@baedert.org>
Sat, 13 Jul 2019 07:38:28 +0000
(09:38 +0200)
We were leaking all of them.
gtk/gtkpicture.c
patch
|
blob
|
history
diff --git
a/gtk/gtkpicture.c
b/gtk/gtkpicture.c
index 1ae70f7cde659b16ce02c672d7818bb6e80807ff..125d37c60b2c28d4ca606f1b1eadaa0877beadd9 100644
(file)
--- a/
gtk/gtkpicture.c
+++ b/
gtk/gtkpicture.c
@@
-809,6
+809,8
@@
gtk_picture_set_paintable (GtkPicture *self,
g_signal_handlers_disconnect_by_func (self->paintable,
gtk_picture_paintable_invalidate_size,
self);
+
+ g_object_unref (self->paintable);
}
self->paintable = paintable;